setTooltipText

open fun setTooltipText(@NonNull view: View, @Nullable tooltipText: CharSequence)(source)

Sets the tooltip for the view.

Prior to API 26 this does nothing. Use TooltipCompat class from v7 appcompat library for a compatible tooltip implementation.

Parameters

view

view for which to set the tooltip.

tooltipText

the tooltip text